package com.jxtc.enterprise.admin.vo;

import com.jxtc.enterprise.admin.dto.CompanyWithTenantDTO;
import com.jxtc.enterprise.common.entity.Company;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;

@Schema(description = "管理平台管理员查询可以分配给其他租户的公司信息")
@Getter
@Setter
@ToString
@NoArgsConstructor
public class AdminAssignableCompanyVO {
    @Schema(description = "公司 ID", example = "c752804d0cd410267f404dd3f0457a57")
    private String id;

    @Schema(description = "公司名称", example = "云启智能技术公司")
    private String name;

    @Schema(description = "HR 名称", example = "张三")
    private String hrName;

    @Schema(description = "HR 手机号", example = "12345678901")
    private String phoneNumber;

    @Schema(description = "公司地址", example = "南山区 xxx 园区 xx 栋 15 楼 1508")
    private String address;

    @Schema(description = "是否已经停止供餐（停止供餐时该值为 true）", example = "false")
    private Boolean stopFlag;

    @Schema(description = "当前所属租户名称", example = "李四")
    private String tenantName;

    @Schema(description = "当前所属租户 ID", example = "d752804d0cd410267f404dd3f0457a56")
    private String tenantId;

    public AdminAssignableCompanyVO(CompanyWithTenantDTO dto) {
        this.id = dto.getCompanyId();
        this.name = dto.getCompanyName();
        this.hrName = dto.getHrName();
        this.phoneNumber = dto.getPhoneNumber();
        this.address = dto.getCompanyAddress();
        this.stopFlag = dto.getStopFlag();
        this.tenantName = dto.getTenantName();
        this.tenantId = dto.getTenantId();
    }
}
